package com.bringway.p2p.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import net.sf.json.JSONObject;

import com.bringway.p2p.dao.AppRootDao;
import com.bringway.p2p.service.AppRootService;

/**
 * 
 * @author
 * @version 创建时间：2015年12月15日 上午9:34:42
 * @功能：
 */

@Service
@Transactional
public class AppRootServiceImpl implements AppRootService {
	@Autowired
	private AppRootDao appRootDao;
	@Override
	public List<Map<String, Object>> queryapproot(JSONObject parms) {
		return appRootDao.queryapproot(parms);
	}

	@Override
	public int getAppRootCount(JSONObject parms) {
		return appRootDao.getAppRootCount(parms);
	}

	@Override
	public boolean queryGyh(JSONObject params) {
		return appRootDao.queryGyh(params)>0?true:false;
	}

}
